package compiler;

import java.awt.*;
import javax.swing.*;

public class Window {

	private Compiler compiler;
	private int width = 800, height = 600;
	private String title = "Compiler";
	private boolean visible = true;
	private boolean resizable = false;

	public Window(Compiler compiler) {
		this.compiler = compiler;
	}

	public void create() {
		JFrame frame = new JFrame();
		JPanel defaultpanel = new JPanel();
		defaultpanel.setBackground(Color.WHITE);
		frame.setSize(width, height);
		frame.setTitle(title);
		frame.add(defaultpanel);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setBackground(Color.WHITE);
		frame.setResizable(resizable);
		frame.setLocationRelativeTo(null);
		frame.setVisible(visible);
	}

}
